const { sequelize } = require('../db/mysql.js');
const { Sequelize, DataTypes } = require('sequelize');

const Article = sequelize.define(
  'fa_article',
  {
    // Model attributes are defined here
    id: {
      type: DataTypes.INTEGER,
      autoIncrement: true,
      primaryKey: true,
    },
    title: {
      type: DataTypes.STRING,
      // allowNull defaults to true
    },
    content: {
      type: DataTypes.TEXT,
      // allowNull defaults to true
    },
  },
);

